-- GENERATED SPELL FOR [Gordok Bushwacker] --


function spell0_14351(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14351', 549, 1)
end

function spell1_14351(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(13737,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14351', 5303, 1)
end

function spell2_14351(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(16145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14351', 30252, 1)
end

function Sorts_14351(pUnit, Event)
local choix_sorts_14351 = math.random(0, 2)
if choix_sorts_14351 == 0 then
pUnit:RegisterEvent('spell0_14351', 1, 1)
end
if choix_sorts_14351 == 1 then
pUnit:RegisterEvent('spell1_14351', 1, 1)
end
if choix_sorts_14351 == 2 then
pUnit:RegisterEvent('spell2_14351', 1, 1)
end
end

function mob14351_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14351', math.random(1500, 3000), 1)
end

function mob14351_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14351_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14351_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14351, 1, 'mob14351_Action')
RegisterUnitEvent(14351, 2, 'mob14351_Leave')
RegisterUnitEvent(14351, 3, 'mob14351_Kill')
RegisterUnitEvent(14351, 4, 'mob14351_Die')
